﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Icon = MsBox.Avalonia.Enums.Icon;

namespace 畜牧业审核程序国产.Models.ToolsClass
{
    internal class ImportOutCome
    {
        public bool IsSuccess { get; set; }
        public string InfoArgs { get; set; }
        public string XlsPath { get; set; }
    }
    internal class FuncOutCome
    {
        public int FuncSuccessCode { get; set; }
        public string FuncOutComeInfoArgs { get; set; }
        public string SomeOtherInfo { get; set; }
        public Icon Icon { get; set; }
        // public required List<string> Exceptions { get; set; }
        public FuncOutCome()
        {
                
        }
        public FuncOutCome( string errorMsg)
        {
                this.FuncOutComeInfoArgs = errorMsg;
        }
    }

    // internal enum FuncSuccessCodeType
    // {
    //     ASuccess = 0,
    //     AError = 1
    // }

    internal class FuncOutComeCodeType
    {
        public static int Success = 0;
        public static int NullError = 1;
        public static int Error = -1;
        public static int IncongruentError = 2;
        public static int FieldMissingError = 3;
        public static int LosePreSeasonError = 4;
        public static int LoseA406Error = 5;
        
    }
}
